/**
 */
package com.dingpeikeji.quickdeer.core.modules.site.dao;

import java.util.List;

import com.dingpeikeji.quickdeer.core.common.persistence.CrudDao;
import com.dingpeikeji.quickdeer.core.common.persistence.annotation.MyBatisDao;
import com.dingpeikeji.quickdeer.core.modules.line.entity.TLine;
import com.dingpeikeji.quickdeer.core.modules.site.entity.TSitedtl;

/**
 * 站点DAO接口
 * @author lh
 * @version 2016-05-19
 */
@MyBatisDao
public interface TSitedtlDao extends CrudDao<TSitedtl> {
	
	public TSitedtl getTSiteBySitename(String sitename, String spottype,String cityname);
	
	// 根据spottype的值的集合获取列表
	public List<TSitedtl> getListBySpottypes(List<String> spottypes);

	public TSitedtl getDpetCity(String departCity);

	public TSitedtl getDestCity(String destCity);

	public TSitedtl getDepartCity(TLine tl);

	public TSitedtl findDepartCity(TLine tl);

	public TSitedtl findDestCity(TLine tl);

	public TSitedtl getDestCityByName(String name);

	public String getSiteIdByName(String sitename);

	public List<TSitedtl> findSiteList(TSitedtl query);

	public String getSiteByName(String siteName);

}
